package RLK_FIELD;

public class Example {
    class Logger {
        private final PrintStream stream;
        public Logger(String fileName)
                throws FileNotFoundException {
            if (fileName == null) stream = System.err;
            else stream = new PrintStream(new FileOutputStream(
                    fileName));
        }
        public void warning(String str) {
            System.out.print("Warning: " + str + ".\n");
        }
    }
}
